/**
 * 服务地址 api 封装
 *
 * @Author:    zhang
 * @Date:      2024-09-21 16:11:15
 * @Copyright  tn
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const serverUrlApi = {

  /**
   * 树形列表  @author  zhang
   */
  querytree : (param) => {
    return getRequest('/videoStream/getGroupTree', param);
  },

  /**
   * 获取流地址  @author  zhang
   */
  getUrl: (param) => {
      return getRequest('/videoStream/getchannelstream', param);
  },

  /**
   * 修改  @author  zhang
   */
  update: (param) => {
      return postRequest('/serverUrl/update', param);
  },


  /**
   * 删除  @author  zhang
   */
  delete: (id) => {
      return getRequest(`/serverUrl/delete/${id}`);
  },

  /**
   * 批量删除  @author  zhang
   */
  batchDelete: (idList) => {
      return postRequest('/serverUrl/batchDelete', idList);
  },

  videoList:(param)=>{
    return postRequest('/videoPlayUrl/queryPage',param)
  },

  synchronousTree:()=>{
    return getRequest('/videoStream/synchronousTree')
  },
  ///videoStream/synchronousTree
};
